<?php

/**
 * Perfil form.
 *
 * @package    inmobiliaria
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class PerfilForm extends BasePerfilForm
{
  public function configure()
  {
        $this->widgetSchema['imagen'] = new sfWidgetFormInputFile(array(
  	'label' => 'Imagen',
	));

        unset(
        $this['created_at'], $this['updated_at'], $this['sf_guard_user_id'], $this['algorithm'], $this['salt'], $this['last_login'], 
        $this['is_super_admin'], $this['groups_list'], $this['permissions_list'], $this['is_active']
        );

	$this->validatorSchema['imagen'] = new sfValidatorFile(array(
	  'required'   => true,
	  'path'       => sfConfig::get('sf_upload_dir').'/perfiles',
	  'mime_types' => 'web_images',
	));

        $this->widgetSchema->getFormFormatter()->setTranslationCatalogue('sf_guard');

        $this->widgetSchema->setLabels(array(
	  'first_name'    => 'Nombre',	  
          'last_name'    => 'Apellido',
	  'email_address'    => 'Email',
	  'username'    => 'Usuario',
	  'password'    => 'Contraseña',
          'especialidades_list'    => 'Especialidades',
	 
        ));

  }
}
